﻿@model List<WebApplication11.Models.Books>
@{
    ViewBag.Title = "Home Page";
}
<a href="/Home/CreateBook" class="btn btn-group-justified btn-success">Create A Book</a>
@foreach (var i in Model)
{

    <div class="jumbotron container-well">
        <div class="col-sm-4">
            <img height="400" width="250" src="@i.ImgUrl" />
        </div>
        <div align="center">
            <h1>@i.Title</h1>
            <h3><strong>ISBN: </strong>@i.Id</h3>
            <h3><strong>Author:</strong> @i.Author</h3>
            <h3><strong>Genre:</strong> @i.Genre</h3>
            <h3><strong>Publication Date:</strong> @i.PubDate.ToShortDateString()</h3>
            <h3><strong>Rating:</strong> @i.Rating</h3>
        </div>
        <div>
            <h3><strong>Summary:</strong></h3>
            @i.Summary
        </div>

        <a href="/Home/Delete/@i.Id" class="btn btn-danger">Delete</a>
        <a class="btn btn-warning" href="/Home/EditBook/@i.Id">Edit</a>
    </div>
}